{template 'header'}
<link rel="stylesheet" href="{$siteRoot}addons/{$modular_name}/template/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="{$siteRoot}addons/{$modular_name}/template/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="{$siteRoot}addons/{$modular_name}/template/kindeditor/kindeditor-all.js"></script>
<script charset="utf-8" src="{$siteRoot}addons/{$modular_name}/template/kindeditor/lang/zh-CN.js"></script>
<script charset="utf-8" src="{$siteRoot}addons/{$modular_name}/template/kindeditor/plugins/code/prettify.js"></script>
<ul class="nav nav-tabs">
    <li {if $op == 'ordinary'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'ordinary'));}">常用设置</a></li>
    <li {if $op == 'share'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'share'));}">分享设置</a></li>
    <li {if $op == 'withdrawals'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'withdrawals'));}">提现配置</a></li>
    <li {if $op == 'diyUi'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'diyUi'));}">DiY设置</a></li>
    <li {if $op == 'advertising'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'advertising'));}">流量主设置</a></li>
    <li {if $op == 'message'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'message'));}">订阅消息设置</a></li>
    <li {if $op == 'pdd'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'pdd'));}">多多进宝设置</a></li>
    {if $isSupportQQ ==1}
    <li {if $op == 'qq'}class="active"{/if}><a href="{php echo $this->createWeburl('config', array('op' => 'qq'));}">qq相关设置</a></li>
    {/if}
</ul>
<form action="" method="post" class="form-horizontal" id="myform" role="form" enctype="multipart/form-data">
    {if $op == 'share'}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">特殊替换:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            输入{name}会自动替换成昵称
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">普通分享文字:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="share_text" placeholder="普通分享文字" value="{$share_text['value']}" type="text">
        </div>
    </div>
    <div class="form-group" id="ling-1">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分享图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('share_image', $share_image['value'], tomedia($share_image['value']));}
        </div>
    </div>
    {elseif $op == 'message'}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提示:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px; color: red">
            <p>小程序服务类目选择,工具->健康管理 </p>
            <p>收益订阅消息id->奖励到账通知</p>

        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">收益订阅消息id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="profit_subscribe_id" placeholder=" 收益订阅消息id" value="{$profit_subscribe_id['value']}" type="text">
            <small style="color: red">提示: 选择栏目  奖励名称 、 奖励说明</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">收益到账消息发送时间:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <select name="earnings_send_hour">
                {php for ($i = 1; $i < 24; $i++){}
                <option {if $earnings_send_hour['value'] == $i}selected="selected"{/if} value="{$i}">{$i}</option>
                {php } }
            </select>点
            <select name="earnings_send_minute">
                {php for ($i = 0; $i < 60; $i++){}
                <option {if $earnings_send_minute['value'] == $i}selected="selected"{/if} value="{$i}">{$i}</option>
                {php } }
            </select>分
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">定时任务</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="crontab" placeholder="定时任务" value="{$crontab}" type="text" disabled>
            <small style="color: red"> 需要把这个地址复制到宝塔计划任务 选择访问url  每5分钟执行一次</small>
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">虚拟用户打卡计划任务</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="batch" placeholder="虚拟用户打卡计划任务" value="{$batch}" type="text" disabled>
        </div>
    </div>

    {elseif $op == 'qq'}
<!--    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">拼多多APPid:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="1108233859" placeholder="1108233859" value="1108233859" disabled type="text">
        </div>
    </div>-->

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">QQ商户号:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="qq_mch_id" placeholder="QQ商户号" value="{$qq_mch_id['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">QQ商户秘钥:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="qq_mch_key" placeholder="QQ商户秘钥" value="{$qq_mch_key['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">操作员ID:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="op_user_id" placeholder="操作员ID" value="{$op_user_id['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">操作员密码:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="op_user_passwd" placeholder="操作员密码" value="{$op_user_passwd['value']}" type="text">
        </div>
    </div>
    {if $isPopularitye}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">首页群号:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="home_group_id" placeholder="首页群号" value="{$home_group_id['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每次守护加多少人气值:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="guard_popularity" placeholder="每次守护加多少人气值" value="{$guard_popularity['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">人气分享 :</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="popularity_share_text" placeholder="人气分享" value="{$popularity_share_text['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-1 control-label">人气分享图片:</label>
    <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
        {php echo tpl_form_field_image('popularity_share_images', $popularity_share_images['value'], tomedia($popularity_share_images['value']));}
        <span style="color:red;">500 * 400</span>
    </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">首页进入展示图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('first_show_img', $first_show_img['value'], tomedia($first_show_img['value']));}
            <span style="color:red;">680 * 758</span>
        </div>
    </div>


    {/if}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">联系客服方式:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="contact_type" value="1" {if $contact_type['value'] == 1 || $contact_type['value'] == ''}checked{/if} />图片
            </label>
            <label class="radio-inline">
                <input type="radio" name="contact_type" value="2" {if $contact_type['value'] == 2}checked{/if} />QQ群
            </label>
        </div>
    </div>
    <div class="form-group" id="customer_img"  {if $contact_type['value'] == 2}style="display: none"{/if}>
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">客服引导图:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('customer_img', $customer_img['value'], tomedia($customer_img['value']));}
            <span style="color:red;">320 * 210</span>
        </div>
    </div>
    <div class="form-group" id="qq_group_id" {if $contact_type['value'] == 1}style="display: none"{/if}>
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">QQ群号:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="qq_group_id" placeholder="QQ群号" value="{$qq_group_id['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">apiclient_cert:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="_qq_apiclient_cert" placeholder="qq_apiclient_cert" type="file">
            <input class="form-control" value="{$qq_apiclient_cert['value']}" name="qq_apiclient_cert" disabled="disabled">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">apiclient_key:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="_qq_apiclient_key" placeholder="qq_apiclient_key" type="file">
            <input class="form-control" value="{$qq_apiclient_key['value']}" name="qq_apiclient_key" disabled="disabled">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提示:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px; color: red">
            <p>小程序服务类目选择,工具->健康管理</p>
            <p>选择 收益到账通知 或者其他相关的通知 只需要有 两个栏目类似奖励名称或者奖励说明就行</p>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">收益订阅消息id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="qq_profit_subscribe_id" placeholder=" 收益订阅消息id" value="{$qq_profit_subscribe_id['value']}" type="text">
            <small style="color: red">提示: 选择栏目  奖励名称 、 奖励说明</small>
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">收益到账消息发送时间:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <select name="qq_earnings_send_hour">
                {php for ($i = 1; $i < 24; $i++){}
                <option {if $qq_earnings_send_hour['value'] == $i}selected="selected"{/if} value="{$i}">{$i}</option>
                {php } }
            </select>点
            <select name="qq_earnings_send_minute">
                {php for ($i = 0; $i < 60; $i++){}
                <option {if $qq_earnings_send_minute['value'] == $i}selected="selected"{/if} value="{$i}">{$i}</option>
                {php } }
            </select>分
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">定时任务</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="qqCrontab" placeholder="定时任务" value="{$qqCrontab}" type="text" disabled>
        </div>
    </div>
    {elseif $op == 'advertising'}

    {if $isDouble ==1}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">是否开启点击广告奖励翻倍</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="click_ad_double" value="1" {if $click_ad_double['value'] == 1}checked{/if} /> 不开启
            </label>
            <label class="radio-inline">
                <input type="radio" name="click_ad_double" value="2" {if $click_ad_double['value'] == 2}checked{/if} />开启
            </label>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">插屏广告id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="screen_ad" placeholder="插屏广告id" value="{$screen_ad['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">格子/banner/视频/id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="grid_ad" placeholder="格子广告id" value="{$grid_ad['value']}" type="text">
            <span style="color: red">基本设置设置的是banner 这儿就填写banner 广告id , 设置的是格子广告 就填写格子广告id ,设置的是视频广告id 这儿就填写视频广告id</span>
            {if $isSupportQQ ==1}
            <span style="color:red;">填写卡片类型的广告id</span>
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">激励视频id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="video_ad" placeholder="激励视频id" value="{$video_ad['value']}" type="text">
        </div>
    </div>
    {if $isSupportQQ ==1}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">banner广告:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="banner_id" placeholder="banner广告" value="{$banner_id['value']}" type="text">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">原生单格子广告:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="single_ad" placeholder="原生单格子广告" value="{$single_ad['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">全屏广告id:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="full_screen_ad" placeholder="全屏广告id" value="{$full_screen_ad['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">全屏广告显示时间:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="ad_time" placeholder="全屏广告显示时间 (单位秒)" value="{$ad_time['value']}" type="text">
            <small style="color: red">为提供用户体验友好度,建议设置不超过10s (单位秒) </small>
        </div>
    </div>
    {elseif $op == 'diyUi'}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提示:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px; color: red">
            <p> 前端自带的有相关图片,需要就自动上传，不需要就用系统自带的</p>
            <p> 打卡成功后的图片需要上传下，这个是打卡完成后弹出的同一个图，就是显示作用</p>

        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">首页背景图:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('home_bg_image', $home_bg_image['value'], tomedia($home_bg_image['value']));}
            <small style="color: red"> 370 * 380</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">授权弹窗图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('login_image', $login_image['value'], tomedia($login_image['value']));}
            <small style="color: red"> 150 * 150</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">个人中心背图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('my_bg', $my_bg['value'], tomedia($my_bg['value']));}
            <small style="color: red"> 370 * 210</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">海报背景图:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('poster_bg', $poster_bg['value'], tomedia($poster_bg['value']));}
            <small style="color: red"> 1080 * 1919</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">公众号图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('official_account_img', $official_account_img['value'], tomedia($official_account_img['value']));}
            <small style="color: red"> 100 * 100</small>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡图标:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('click_resize', $click_resize['value'], tomedia($click_resize['value']));}
            <small style="color: red"> 35 * 35</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">金币图标:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('pop_gold', $pop_gold['value'], tomedia($pop_gold['value']));}
            <small style="color: red"> 30 * 30</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡成功后的图片图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_multi_image('baduanjin_images', $baduanjin_images['value']);}
            <small style="color: red">400*800</small>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分段打卡模式 首页背景:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('new_home_bg_image', $new_home_bg_image['value'], tomedia($new_home_bg_image['value']));}
            <small style="color: red"> 410 * 270</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分段打卡模式 首页图片:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('new_home_image', $new_home_image['value'], tomedia($new_home_image['value']));}
            <small style="color: red">150*150</small>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分段打卡模式 悬浮金币:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('currency_image', $currency_image['value'], tomedia($currency_image['value']));}
            <small style="color: red"> 45*45</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分段打卡模式 文案描述 :</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="new_home_txt" placeholder="分段打卡模式 文案描述 " value="{$new_home_txt['value']}" type="text">
        </div>
    </div>





    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">获颜颜色代码:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px">
            <span style="color: red"> 切记！！！RGB 演示代码前面有个 #</span><br>
            <span style="color: red"><a href="https://link.fobshanghai.com/rgbcolor.htm" target="_blank">点击我获取RGB颜色代码</a></span>
        </div>
    </div>


    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">标题背景色:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="nav_bg_color" placeholder="标题背景色 例如 #FFF68F" value="{$nav_bg_color['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">公告背景色:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="roll_content_bg" placeholder="公告背景色 例如 #FFF68F" value="{$roll_content_bg['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡背景色:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="click_bg_color" placeholder="打卡背景色 例如 #FFF68F" value="{$click_bg_color['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分段打卡模式 文案描述背景色:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="new_home_txt_color" placeholder="分段打卡模式 文案描述背景色 例如 #FFF68F" value="{$new_home_txt_color['value']}" type="text">
        </div>
    </div>

    {elseif $op == 'withdrawals'}

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">是否开启提现:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="withdrawal_state" value="1" {if $withdrawal_state['value'] == 1 || $withdrawal_state['value'] == ''}checked{/if} />开启
            </label>
            <label class="radio-inline">
                <input type="radio" name="withdrawal_state" value="2" {if $withdrawal_state['value'] == 2}checked{/if} /> 关闭
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">apiclient_cert:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="_apiclient_cert" placeholder="apiclient_cert" type="file">
            <input class="form-control" value="{$apiclient_cert['value']}" name="apiclient_cert" disabled="disabled">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">apiclient_key:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="_apiclient_key" placeholder="apiclient_key" type="file">
            <input class="form-control" value="{$apiclient_key['value']}" name="apiclient_key" disabled="disabled">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">个人中心现金奖励文案:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="my_withdrawal_txt" placeholder="个人中心现金奖励文案" value="{$my_withdrawal_txt['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提现按钮文案:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="withdrawal_button_txt" placeholder="提现按钮文案" value="{$withdrawal_button_txt['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提现超过多少需要审核:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="cash_reviewed" placeholder="提现超过多少需要审核" value="{$cash_reviewed['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">累积打卡多少天才能提现:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="sign_days" placeholder="累积打卡多少天才能提现" value="{$sign_days['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">首次提现:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="first_presentation" placeholder="首次提现" value="{$first_presentation['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">非首次提现最少金额:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="follow_up_presentation" placeholder="非首次提现最少金额" value="{$follow_up_presentation['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每日提现金额上限:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="bag_daily_upper" placeholder="每日提现金额上限" value="{$bag_daily_upper['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每日提现次数:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="withdrawal_day_frequency" placeholder="每日提现次数" value="{$withdrawal_day_frequency['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提现方式:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="cash_type" value="1" {if $cash_type['value'] == 1 || $cash_type['value'] == ''}checked{/if} />企业付款零钱
            </label>
            <label class="radio-inline">
                <input type="radio" name="cash_type" value="2" {if $cash_type['value'] == 2}checked{/if} />收款码
            </label>
        </div>
    </div>
    <div class="form-group" >
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提现背景:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            {php echo tpl_form_field_image('cash_bg', $cash_bg['value'], tomedia($cash_bg['value']));}
            <small style="color: red"> 750 * 350</small>
        </div>
    </div>
    <span id="cash_explain">
        {loop $cash_explain['value'] $key $item}
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-1 control-label">{if $key == 0}提现说明:{/if}</label>
            <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
                <input class="form-control" style="width:80%;float:left" name="cash_explain[]" placeholder="提现说明" value="{$item}" type="text">
                {if $key == 0}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" id="add_cash_explain">增加</button>
                {else}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_cash_explain(this)">删除</button>
                {/if}
            </div>
        </div>
        {/loop}
    </span>
    <script type="application/javascript">
        $(function () {
            $('#add_cash_explain').click(function () {
                var html = '<div class="form-group">' +
                    '<label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>' +
                    '<div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">' +
                    '<input class="form-control" style="width:80%;float:left" name="cash_explain[]" placeholder="提现说明" value="" type="text">' +
                    '<button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_cash_explain(this)">删除</button>' +
                    '</div>' +
                    '</div>';
                $('#cash_explain').append(html);
            });
        });
        function delete_cash_explain(t) {
            $(t).parent().parent().remove();
        }
    </script>


    {elseif $op == 'pdd'}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">提示:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="margin-top:8px; color: red">
            <p>
                1:注册拼多多开放平台创建应用<a target="_blank" href="https://open.pinduoduo.com/#/index">[点我]</a>
            </p>
            <p>
                2,登录多多进宝进宝绑定<a target="_blank" href="https://jinbao.pinduoduo.com/">[多多进宝]</a>
            </p>
            <p>3,&#23562;&#25964;&#30340;&#29992;&#25143;&#20320;&#22909;&#65292;&#22914;&#24744;&#30475;&#36824;&#19981;&#20250;&#30003;&#35831;&#44;&#51;&#54;&#53;&#25552;&#20379;&#20195;&#30003;&#35831;&#26381;&#21153;&#40;&#21253;&#36807;&#41;&#65292;&#20294;&#38656;&#35201;&#25903;&#20184;&#26381;&#21153;&#36153;&#50;&#48;&#48;&#44;&#35831;&#32852;&#31995;&#20316;&#32773;&#86;&#88;&#58;&#57;&#50;&#55;&#56;&#53;&#55;&#54;&#54;&#57;</p>
        </div>
    </div>
<!--    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">是否开启多多进宝:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="pdd_switch" value="1" {if $pdd_switch['value'] == 1 || $pdd_switch['value'] == ''}checked{/if} />开启
            </label>
            <label class="radio-inline">
                <input type="radio" name="pdd_switch" value="2" {if $pdd_switch['value'] == 2}checked{/if} /> 关闭
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">多多导航名称:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="pdd_navigation_name" placeholder="多多导航名称" value="{$pdd_navigation_name['value']}" type="text">
        </div>
    </div>-->
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">推广位pid:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="pdd_pid" placeholder="拼多多推广位pid" value="{$pdd_pid['value']}" type="text">
            <small style="color: red">登录多多进宝 效果数据-> 推手推广效果-> 推广位管理  </small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">拼多多Client ID:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="pdd_client_id" placeholder="拼多多Client ID" value="{$pdd_client_id['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">拼多多client_secret:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="pdd_client_secret" placeholder="拼多多client_secret" value="{$pdd_client_secret['value']}" type="text">
        </div>
    </div>

<!--    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">拼多多订单返水滴:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="ppd_commission" placeholder="拼多多订单返水滴" value="{$ppd_commission['value']}" type="text">
            <small style="color: red"> 设置的是百分比 比如设置的是 50【也就是50%】 佣金为50元 25水滴</small>
        </div>
    </div>-->
    <span id="popular_recommend">
        {loop $popular_recommend['value'] $key $item}
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-1 control-label">{if $key == 0}热门推荐:{/if}</label>
            <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
                <input class="form-control" style="width:80%;float:left" name="popular_recommend[]" placeholder="热门推荐" value="{$item}" type="text">
                {if $key == 0}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" id="add_popular_recommend">增加</button>
                {else}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_popular_recommend(this)">删除</button>
                {/if}
            </div>
        </div>
        {/loop}
    </span>
    {else}

    {if $filterUrl == false}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">帮助中心:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <span style="color:red; font-size: 16px"><a href="https://qm.qq.com/cgi-bin/qm/qr?k=LfNj5WmRp3ftBIbWmxOTU6wl3IgK2s_q&noverify=0" target="_blank">点击联系客服配置</a></span>
        </div>
    </div>
    {/if}
    <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-1 control-label">小程序名:</label>
            <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
                <input class="form-control" name="xcx_title" placeholder="小程序名" value="{$xcx_title['value']}" type="text">
            </div>
        </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">兑换支付方式:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="exchange_type" value="1" {if $exchange_type['value'] == 1 || $exchange_type['value'] == ''}checked{/if} />微信支付
            </label>
            <label class="radio-inline">
                <input type="radio" name="exchange_type" value="2" {if $exchange_type['value'] == 2}checked{/if} /> 余额支付
            </label>
        </div>
    </div>
       <div class="form-group">
           <label class="col-xs-12 col-sm-3 col-md-1 control-label">是否开启审核模式:</label>
           <div class="col-sm-9 col-xs-12">
               <label class="radio-inline">
                   <input type="radio" name="audit_model" value="1" {if $audit_model['value'] == 1 || $audit_model['value'] == ''}checked{/if} />开启
               </label>
               <label class="radio-inline">
                   <input type="radio" name="audit_model" value="2" {if $audit_model['value'] == 2}checked{/if} /> 关闭
               </label>
           </div>
       </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">奖励类型:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="reward_type" value="1" {if $reward_type['value'] == 1 || $reward_type['value'] == ''}checked{/if} />每个金币多少钱
            </label>
            <label class="radio-inline">
                <input type="radio" name="reward_type" value="2" {if $reward_type['value'] == 2}checked{/if} />资金池
            </label>
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">首页小程序显示方式:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="xcx_display_type" value="1" {if $xcx_display_type['value'] == 1 || $xcx_display_type['value'] == ''}checked{/if} />竖排
            </label>
            <label class="radio-inline">
                <input type="radio" name="xcx_display_type" value="2" {if $xcx_display_type['value'] == 2}checked{/if} />横排
            </label>
        </div>
    </div>


    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">微信端广告类型:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="ad_type" value="1" {if $ad_type['value'] == 1 || $ad_type['value'] == ''}checked{/if} />格子广告
            </label>
            <label class="radio-inline">
                <input type="radio" name="ad_type" value="2" {if $ad_type['value'] == 2}checked{/if} />banner广告
            </label>
            <label class="radio-inline">
                <input type="radio" name="ad_type" value="3" {if $ad_type['value'] == 3}checked{/if} />视频广告
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡模式:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="pattern" value="1" {if $pattern['value'] == 1 || $pattern['value'] == ''}checked{/if} />老模式
            </label>
            <label class="radio-inline">
                <input type="radio" name="pattern" value="2" {if $pattern['value'] == 2}checked{/if} />分段打卡
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">任务金币是否参与分红:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="task_bonus" value="1" {if $task_bonus['value'] == 1 || $task_bonus['value'] == ''}checked{/if} />不参与
            </label>
            <label class="radio-inline">
                <input type="radio" name="task_bonus" value="2" {if $task_bonus['value'] == 2}checked{/if} />参与
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">否开启验证码:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="is_captcha" value="1" {if $is_captcha['value'] == 1 || $is_captcha['value'] == ''}checked{/if} />不开启
            </label>
            <label class="radio-inline">
                <input type="radio" name="is_captcha" value="2" {if $is_captcha['value'] == 2}checked{/if} />开启
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每天打卡大于多少次可以参与分红:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="click_num_bonus" placeholder="每天打卡大于多少次可以参与分红" value="{$click_num_bonus['value']}" type="text">
            <small style="color: red">注意。如果你设置的是2 那么用户打卡必须大于2次才能分红</small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">金币是否分红:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="is_bonus" value="1" {if $is_bonus['value'] == 1 || $is_bonus['value'] == ''}checked{/if} />分红
            </label>
            <label class="radio-inline">
                <input type="radio" name="is_bonus" value="2" {if $is_bonus['value'] == 2}checked{/if} />不在分红
            </label>
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">分红金币是否扣除:</label>
        <div class="col-sm-9 col-xs-12">
            <label class="radio-inline">
                <input type="radio" name="is_bonus_deduction" value="1" {if $is_bonus_deduction['value'] == 1 || $is_bonus['value'] == ''}checked{/if} />不扣除
            </label>
            <label class="radio-inline">
                <input type="radio" name="is_bonus_deduction" value="2" {if $is_bonus_deduction['value'] == 2}checked{/if} />扣除
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">金币名称:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="currency_name" placeholder="金币名称" value="{$currency_name['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡文案:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="clock_text" placeholder="打卡文案" value="{$clock_text['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">打卡异常多少次后自动拉黑:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="abnormal_abnormal" placeholder="打卡异常多少次后自动拉黑" value="{$abnormal_abnormal['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">拉黑后描述:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="block_msg" placeholder="拉黑后描述" value="{$block_msg['value']}" type="text">
            <small style="color: red"> 拉黑后不能打卡,提现 </small>
        </div>
    </div>

    <div class="form-group" id="pool" {if $reward_type['value'] == 1}style="display: none"{/if}>
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">资金池:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="pool" placeholder="资金池" value="{$pool['value']}" type="text">
        </div>
    </div>
    <div class="form-group" id="currency_money" {if $reward_type['value'] == 2}style="display: none"{/if}>
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每个金币价格:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="currency_money" placeholder="每个金币价格 例如 0.005" value="{$currency_money['value']}" type="text">
            <small style="color: red"> 可以保留三位小数 0.001 </small>
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每天打卡次数:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="clock_num" placeholder="每天打卡次数" value="{$clock_num['value']}" type="text">
        </div>
    </div>

    {if $send == 1}

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每天新用户X前多少人:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="rank_number" placeholder="每天新用户X前多少人" value="{$rank_number['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">送多少钱:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="rank_money" placeholder="送多少钱" value="{$rank_money['value']}" type="text">
            <span style="color: red">每天的新用户才送。如果你设置的是100人，金额设置的0.03  那么就是每天的新用户前一百名送0.03元</span>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">每天打卡间隔(单位秒):</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="clock_interval" placeholder="每天打卡间隔(单位秒)" value="{$clock_interval['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">自己打卡一次获得金币:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="own_currency" placeholder="自己打卡一次获得金币" value="{$own_currency['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">一级下线打卡奖励金币:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="one_currency" placeholder="一级下线打卡奖励金币" value="{$one_currency['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">二级下线打卡奖励金币:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="two_currency" placeholder="二级下线打卡奖励金币" value="{$two_currency['value']}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">显示好友数量:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
            <input class="form-control" name="show_friends_num" placeholder="显示好友数量" value="{$show_friends_num['value']}" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label">虚拟用户打卡获得金币范围:</label>
        <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12" style="float: left">
            <input class="form-control" name="batch_start_currency" style="width:20%;float: left" placeholder="阿拉伯数字" value="{$batch_start_currency['value']}" type="text">
            <input class="form-control" name="batch_end_currency" style="width:20%;float: left" placeholder="阿拉伯数字" value="{$batch_end_currency['value']}" type="text">
        </div>
    </div>





<!--    <span id="exchange_note">
        {loop $exchange_note['value'] $key $item}
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-1 control-label">{if $key == 0}兑换说明:{/if}</label>
            <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
                <input class="form-control" style="width:80%;float:left" name="exchange_note[]" placeholder="兑换说明" value="{$item}" type="text">
                {if $key == 0}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" id="add_exchange_note">增加</button>
                {else}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_exchange_note(this)">删除</button>
                {/if}
            </div>
        </div>
        {/loop}
    </span>-->
<!--
    <span id="exchange_amount">
        {loop $exchange_amount['value'] $key $item}
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-1 control-label">{if $key == 0}兑换金额:{/if}</label>
            <div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">
                <input class="form-control" style="width:80%;float:left" name="exchange_amount[]" placeholder="兑换金额" value="{$item}" type="text">
                {if $key == 0}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" id="add_exchange_amount">增加</button>
                {else}
                <button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_exchange_amount(this)">删除</button>
                {/if}
            </div>
        </div>
        {/loop}
    </span>
-->

    {/if}
    <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>
        <div class="">
            <input type="hidden" name="op" value="{$op}">
            <input type="submit" name="submit" id="submit" value="保存" class="btn btn-primary">
        </div>
    </div>
</form>
<script type="application/javascript">
    $(function () {
        $('#add_exchange_note').click(function () {
            var html = '<div class="form-group">' +
                '<label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>' +
                '<div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">' +
                '<input class="form-control" style="width:80%;float:left" name="exchange_note[]" placeholder="兑换说明" value="" type="text">' +
                '<button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_exchange_note(this)">删除</button>' +
                '</div>' +
                '</div>';
            $('#exchange_note').append(html);
        });

        $('#add_exchange_amount').click(function () {
            var html = '<div class="form-group">' +
                '<label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>' +
                '<div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">' +
                '<input class="form-control" style="width:80%;float:left" name="exchange_amount[]" placeholder="兑换金额" value="" type="text">' +
                '<button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_exchange_amount(this)">删除</button>' +
                '</div>' +
                '</div>';
            $('#exchange_amount').append(html);
        });


        $('#add_popular_recommend').click(function () {
            var html = '<div class="form-group">' +
                '<label class="col-xs-12 col-sm-3 col-md-1 control-label"></label>' +
                '<div class="col-sm-7 col-lg-8 col-md-8 col-xs-12">' +
                '<input class="form-control" style="width:80%;float:left" name="popular_recommend[]" placeholder="热门推荐" value="" type="text">' +
                '<button type="button" style="margin-left: 5px;" class="btn btn-primary" onclick="delete_popular_recommend(this)">删除</button>' +
                '</div>' +
                '</div>';
            $('#popular_recommend').append(html);
        });

    });
    function delete_exchange_note(t) {
        $(t).parent().parent().remove();
    }
    function delete_exchange_amount(t) {
        $(t).parent().parent().remove();
    }
    function delete_popular_recommend(t) {
        $(t).parent().parent().remove();
    }
</script>
{template 'footer'}

<script>
    $(function () {
        $("input[name='contact_type']").click(function () {
            if ($(this).val() ==1 ) {
                $('#customer_img').show();
                $('#qq_group_id').hide();
            }  else {
                $('#qq_group_id').show();
                $('#customer_img').hide();
            }
        });


        $("input[name='reward_type']").click(function () {
            if ($(this).val() ==1 ) {
                $('#currency_money').show();
                $('#pool').hide();
            }  else {
                $('#pool').show();
                $('#currency_money').hide();
            }
        });


    })


</script>